package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.ThdBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface ThdService extends BaseService<ThdBean> {

	ThdBean getThdBeanById(String id) throws Exception;
	
	void removeThdBeanById(String id) throws Exception;
	
	void removeThdBeanByIds(String ids) throws Exception;
	
	ThdBean saveThdBean(ThdBean crm) throws Exception;
	
	ThdBean updateThdBean(ThdBean crm) throws Exception;
	
	Page<ThdBean>  findThdBeanByCond(ThdBean bean,
			Page<ThdBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveThdBeanExt(String sql) throws Exception;

	String findThdBeanExtCreate(String tableName) throws Exception;

	String findThdBeanExtEdit(String tableName, String id)
			throws Exception;

	String findThdBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasThdBeanExtData(String tableName, String id)
			throws Exception;
}